package chapter10;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2018-03-21 下午4:32
 */
public class TreeTest {
    private static final Logger LOGGER = LoggerFactory.getLogger(TreeTest.class);

    public static void main(String[] args) {
        BinaryTree bt = new BinaryTree();
        bt.add(new Book("test1", 12.3));
        bt.add(new Book("test2", 56.3));
        bt.add(new Book("test3", 22.3));
        bt.add(new Book("test4", 124.3));
        Object[] objects = bt.toArray();

        LOGGER.info(Arrays.toString(objects));
    }
}
